package com.ilancuo.thinkinjava.chapter_21;

/**
 * Created by ilancuo on 2018/8/13.
 */
public class SerialNumberGenerator {
    private static volatile int serialNumber = 0;

    public static int nextSerialNumber() {
        return serialNumber++;
    }
}
